package com.tangguo.vshop.repository;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

import com.tangguo.vshop.domain.Order;

public interface OrderRepository extends MongoRepository<Order, String> {

	Page<Order> findByCreator(String id,Pageable pageable);

	Page<Order> findByCodeAndCreator(String code, String creatorId, Pageable pageable);


}
